package com.xvjialing.lytech.weatherreport.repository;

import com.xvjialing.lytech.weatherreport.bean.CityCode;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface CityCodeRepository extends JpaRepository<CityCode,Long> {

    CityCode findById(Long id);

    CityCode findByCode(int code);

    CityCode findByDescription(String description);

    Page<CityCode> findAll(Pageable pageable);
}
